package com.hrrt.home.dao.model;

import java.io.Serializable;
import java.util.Date;

public class HomeEquipment implements Serializable {
    /**
     * 标识
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 关联房间id
     *
     * @mbg.generated
     */
    private Integer roomId;

    /**
     * 基础设备id
     *
     * @mbg.generated
     */
    private Integer equipBasicId;

    /**
     * 最后一次控制时间
     *
     * @mbg.generated
     */
    private Date lastTime;

    private Integer type;

    /**
     * 设备名称
     *
     * @mbg.generated
     */
    private String equipName;

    /**
     * 所属品牌标识
     *
     * @mbg.generated
     */
    private Integer brandId;

    private String roomName;
    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRoomId() {
        return roomId;
    }

    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    public Integer getEquipBasicId() {
        return equipBasicId;
    }

    public void setEquipBasicId(Integer equipBasicId) {
        this.equipBasicId = equipBasicId;
    }

    public Date getLastTime() {
        return lastTime;
    }

    public void setLastTime(Date lastTime) {
        this.lastTime = lastTime;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getEquipName() {
        return equipName;
    }

    public void setEquipName(String equipName) {
        this.equipName = equipName;
    }

    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", roomId=").append(roomId);
        sb.append(", equipBasicId=").append(equipBasicId);
        sb.append(", lastTime=").append(lastTime);
        sb.append(", type=").append(type);
        sb.append(", equipName=").append(equipName);
        sb.append(", brandId=").append(brandId);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        HomeEquipment other = (HomeEquipment) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getRoomId() == null ? other.getRoomId() == null : this.getRoomId().equals(other.getRoomId()))
            && (this.getEquipBasicId() == null ? other.getEquipBasicId() == null : this.getEquipBasicId().equals(other.getEquipBasicId()))
            && (this.getLastTime() == null ? other.getLastTime() == null : this.getLastTime().equals(other.getLastTime()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getEquipName() == null ? other.getEquipName() == null : this.getEquipName().equals(other.getEquipName()))
            && (this.getBrandId() == null ? other.getBrandId() == null : this.getBrandId().equals(other.getBrandId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getRoomId() == null) ? 0 : getRoomId().hashCode());
        result = prime * result + ((getEquipBasicId() == null) ? 0 : getEquipBasicId().hashCode());
        result = prime * result + ((getLastTime() == null) ? 0 : getLastTime().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getEquipName() == null) ? 0 : getEquipName().hashCode());
        result = prime * result + ((getBrandId() == null) ? 0 : getBrandId().hashCode());
        return result;
    }
}